package com.it.elmboot.mapper;

import com.it.elmboot.pojo.Business;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface BusinessMapper {

     List<Business> getAll();

     Business getBusinessById(Integer businessId);

     @Select("select * from business where orderTypeId=#{orderTypeId} order by businessId")
     public List<Business> listBusinessByOrderTypeId(Integer orderTypeId);


}
